package com.itaming.lycheeframework.support.cipher;

/**
 * 密码常量类
 *
 * @author A.Ming
 */
public interface CipherConstant {

    /**
     * AES算法
     */
    String ALGORITHM_AES = "AES";

    /**
     * DES算法
     */
    String ALGORITHM_DES = "DES";

    /**
     * SM4算法
     */
    String ALGORITHM_SM4 = "SM4";

    /**
     * RSA算法
     */
    String ALGORITHM_RSA = "RSA";

    /**
     * SM2算法
     */
    String ALGORITHM_SM2 = "SM2";

    /**
     * SM2算法
     */
    String ALGORITHM_SM2_C1C3C2 = "SM2-C1C3C2";

    /**
     * SM2算法
     */
    String ALGORITHM_SM2_C1C2C3 = "SM2-C1C2C3";

    /**
     * EC算法
     */
    String ALGORITHM_EC = "EC";

    /**
     * SM2椭圆曲线参数
     */
    String SM2_CURVE_NAME = "sm2p256v1";

    /**
     * AES初始化向量长度(bit)
     */
    int AES_IV_BIT_LENGTH = 128;

    /**
     * DES初始化向量长度(bit)
     */
    int DES_IV_BIT_LENGTH = 64;

    /**
     * SM4初始化向量长度(bit)
     */
    int SM4_IV_BIT_LENGTH = 128;

}
